package com.asen.commons.core.base.service;

import com.asen.commons.core.base.domain.EnableBase;

/**
 * 启用禁用基础模板Service接口
 *
 * @author Gary
 * @version 1.0
 * @date 2018-12-09
 */
public interface EnableBaseService<T extends EnableBase> extends GenericService<T> {

    /**
     * 启用
     *
     * @param id
     * @throws Exception
     */
    void enable(Long id) throws Exception;

    /**
     * 禁用
     *
     * @param id
     * @throws Exception
     */
    void disable(Long id) throws Exception;
}
